import request from '@/utils/request'

export function getPermissionDetail(id) {
  return request({
    url: `/sys/role/${id}`,
    method: 'get'
  })
}

export function assignPermission(data) {
  return request({
    url: `/sys/role/assignPrem`,
    method: 'put',
    data
  })
}
